Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gamma support to vips image processor #41

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

knarewski
Copy link
Contributor

@knarewski knarewski commented Dec 6, 2024

Background

GdkPixbuf-based image processing can take over 1GB of memory for processing a single high-resolution photo. We've decided to introduce another processor, hoping that it'll improve Morandi's memory profile and performance.

Problems

Vips processor doesn't support gamma operation

Solution

Add support for gamma operation

Pixbuf vs Vips comparison

Comparison of images with gamma applied (left - pixbuf, right - vips), mean average error: 0.0105821

The vips image appears to have minimally lower contrast, best visible on purple pixels

Notes

  • I've also slightly updated the docs (documenting missing option and clarifying the other)

The visual tests difference:
- plasma-gamma - MAE (Mean Average Error): 0.0105821
The vips image appears to have minimally lower contrast, best visible on purple pixels
@knarewski knarewski requested a review from a team December 6, 2024 14:46
@knarewski knarewski merged commit c112ee5 into master Dec 9, 2024
15 checks passed
@knarewski knarewski deleted the feat-add-support-for-gamma branch December 9, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants